package com.keray.web.push.store;

import com.keray.web.push.ClientMessageData;
import com.keray.web.push.MessageType;

import java.util.List;

/**
 * @author by keray
 * date:2021/7/26 1:34 下午
 */
public interface MessageDataStore {

    String insertMessage(ClientMessageData data);

    void sendOk(String messageId);

    List<ClientMessageData> uidAll(MessageType type, String service, String uid);

    List<ClientMessageData> uidAllNotSend(MessageType type, String service, String uid);

    List<ClientMessageData> groupAll(MessageType type, String service, String group);

    List<ClientMessageData> groupNotSendAllByUid(MessageType type, String service, String group, String uid);


}
